<%@page import="java.io.PrintWriter"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.ArrayList" %>

<%@page import="com.sun.xml.internal.txw2.Document"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>DAILY DEPOSIT & REFUND</title>
</head>
<%
ArrayList<Integer> paientIdUtensilAllocated= (ArrayList<Integer>)session.getAttribute("paientIdUtensilAllocated");
ArrayList<Integer> amountIdUtensilAllocated= (ArrayList<Integer>)session.getAttribute("amountIdUtensilAllocated");
ArrayList<Integer> paientIdUtensilDeAllocated= (ArrayList<Integer>)session.getAttribute("paientIdUtensilDeAllocated");
ArrayList<Integer> amountIdUtensilDeAllocated= (ArrayList<Integer>)session.getAttribute("amountIdUtensilDeAllocated");
ArrayList<Integer> transactionIdCheckOut= (ArrayList<Integer>)session.getAttribute("transactionIdCheckOut");
ArrayList<Integer> amountCheckOut= (ArrayList<Integer>)session.getAttribute("amountCheckOut");

%>
<body>
	<table border="1" align="center" style="font-family: sans-serif; font-size: small;">
		<tr>
			<td colspan="9" align="center">
				DAILY DEPOSIT & REFUND
			</td>
		</tr>
		<tr>
			<td colspan="4" align="center">				
			</td>			
			<td colspan="5" align="left">
				DATE: <%=session.getAttribute("date").toString()%>
			</td>
		</tr>

		<tr>
			<td align="center" colspan="4">
				RECEIVED DEPOSIT FOR ROOMS
			</td>
			<td align="center" colspan="5">
				REFUNDED DEPOSIT FOR ROOMS
			</td>
		</tr>
		
		<tr>
			<td align="center" colspan="2">
				Register S. No.
			</td>
			<td align="center" colspan="2">
				Total Amount (X)
			</td>
			<td align="center" colspan="1">
				S.No.
			</td >
			<td align="center" colspan="2">
				Register S.No.
			</td>
			<td align="center" colspan="2">
				Amount 
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%=session.getAttribute("depositTransactionIdRange").toString()+"."%>
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("totalDeposit").toString()+"."%>
			</td>
			<td align="center" colspan="1">
				1
			</td >
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>0)
					{
				%>
						<%=transactionIdCheckOut.get(0) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>0)
					{
				%>
						<%=amountCheckOut.get(0) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="4">
				RECEIVED DEPOSIT FOR UTENSIL
			</td>
			<td align="center" colspan="1">
				2
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>1)
					{
				%>
						<%=transactionIdCheckOut.get(1) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>1)
					{
				%>
						<%=amountCheckOut.get(1) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				TransactionId Id
			</td>
			<td align="center" colspan="2">
				Amount
			</td>
			<td align="center" colspan="1">
				3
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>2)
					{
				%>
						<%=transactionIdCheckOut.get(2) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>2)
					{
				%>
						<%=amountCheckOut.get(2) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>0)
					{
				%>
						<%=paientIdUtensilAllocated.get(0) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>0)
					{
				%>
						<%=amountIdUtensilAllocated.get(0) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				4
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>3)
					{
				%>
						<%=transactionIdCheckOut.get(3) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>3)
					{
				%>
						<%=amountCheckOut.get(3) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>1)
					{
				%>
						<%=paientIdUtensilAllocated.get(1) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>1)
					{
				%>
						<%=amountIdUtensilAllocated.get(1) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				5
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>4)
					{
				%>
						<%=transactionIdCheckOut.get(4) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>4)
					{
				%>
						<%=amountCheckOut.get(4) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>2)
					{
				%>
						<%=paientIdUtensilAllocated.get(2) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>2)
					{
				%>
						<%=amountIdUtensilAllocated.get(2) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				6
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>5)
					{
				%>
						<%=transactionIdCheckOut.get(5) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>5)
					{
				%>
						<%=amountCheckOut.get(5) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>3)
					{
				%>
						<%=paientIdUtensilAllocated.get(3) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilAllocated.size()>3)
					{
				%>
						<%=amountIdUtensilAllocated.get(3) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				7
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>6)
					{
				%>
						<%=transactionIdCheckOut.get(6) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>6)
					{
				%>
						<%=amountCheckOut.get(6) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
					if(paientIdUtensilAllocated.size()>4)
					{ %>
						<%=paientIdUtensilAllocated.get(4)%>
					<%}
					else
					{ %>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="2">
				<% 	if(paientIdUtensilAllocated.size()>4)
					{ %>
						<%=amountIdUtensilAllocated.get(4) %>
					<%}
					else
					{ %>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="1">
				8
			</td >
			<td align="center" colspan="2">
				<% if(transactionIdCheckOut.size() > 7) { %>
					<%=transactionIdCheckOut.get(7) %>
				<% } else { %>
					.		
				<% } %>
			</td>
			<td align="center" colspan="2">
				<% 	if(transactionIdCheckOut.size()>7) { %>
						<%=amountCheckOut.get(7)%>
				<% } else { %>
					.
				<% } %>
			</td>
			
		</tr>
		
		<tr>
			<td align="center" colspan="2">
				<%	if(paientIdUtensilAllocated.size()>5) { %>
						<%=paientIdUtensilAllocated.get(5)%>
					<% }
					else
					{ %>
						.
					<% } %>
			</td>
			<td align="center" colspan="2">
				<% 	if(paientIdUtensilAllocated.size()>5) { %>
						<%=amountIdUtensilAllocated.get(5) %>
					<% } else { %>
						.
					<% } %>
			</td>
			<td align="center" colspan="1">
				9
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>8)
					{ %>
						<%=transactionIdCheckOut.get(8) %>
					<% }
					else
					{ %>
						.
					<% } %>
			</td>
			<td align="center" colspan="2">
				<% 	if(transactionIdCheckOut.size()>8)
					{ %>
						<%=amountCheckOut.get(8) %>
					<% }
					else
					{ %>
						.
					<% }
				%> 
			</td>
		</tr>
		
		<tr>
			<td align="center" colspan="2">
				<% if(paientIdUtensilAllocated.size()>6) { %>
						<%=paientIdUtensilAllocated.get(6)%>
				<%  } else { %>
					.
				<% } %>
			</td>
			<td align="center" colspan="2">
				<% 	if(paientIdUtensilAllocated.size()>6) { %>
					<%=amountIdUtensilAllocated.get(6)%>
				<%	} else	{ %>
						.
				<%	} %>
			</td>
			<td align="center" colspan="1">
				10
			</td >
			<td align="center" colspan="2">
			<%	if(transactionIdCheckOut.size()>9) { %>
				<%=transactionIdCheckOut.get(9)%>
			<%	} else { %>
						.
			<% } %>
			</td>
			<td align="center" colspan="2">
				<% 	if(transactionIdCheckOut.size()>9)
					{ %>
						<%= amountCheckOut.get(9)%>
				<%}
					else
					{ %>
						.
				<% } %>
			</td>
		</tr>
		
		<tr>
			<td align="center" colspan="2">
				<%
					if(paientIdUtensilAllocated.size()>7)
					{ %>
						<%=paientIdUtensilAllocated.get(7)%>
					<% }
					else
					{%>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="2">
				<% 	if(paientIdUtensilAllocated.size()>7)
					{ %>
						<%=amountIdUtensilAllocated.get(7)%>
						<%}
					else
					{ %>
						.
					<% } %>
			</td>
			<td align="center" colspan="1">
				11
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>10)
					{ %>
						<%=transactionIdCheckOut.get(10) %>
					<%}
					else
					{ %>
						.
					<% } %>
			</td>
			<td align="center" colspan="2">
				<% 	if(transactionIdCheckOut.size()>10)
					{ %>
						<%=amountCheckOut.get(10)%>
					<%}
					else
					{%>
						.
					<% }
				%>
			</td>
		</tr>
		
		<tr>
			<td align="center" colspan="2">
				<%
					if(paientIdUtensilAllocated.size()>8)
					{ %>
						<%=paientIdUtensilAllocated.get(8)%>
					<%}
					else
					{%>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="2">
				<% 	if(paientIdUtensilAllocated.size()>8)
					{ %>
						<%=amountIdUtensilAllocated.get(8)%>
					<%}
					else
					{ %>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="1">
				12
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>11)
					{ %>
						<%=transactionIdCheckOut.get(11)%>
					<%}
					else
					{ %>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="2">
				<% 	if(transactionIdCheckOut.size()>11)
					{ %>
						<%=amountCheckOut.get(11)%>
					<%}
					else
					{ %>
						.
					<%}
				%>
			</td>
		</tr>
		
		<tr>
			<td align="center" colspan="2">
				<%
					if(paientIdUtensilAllocated.size()>9)
					{ %>
						<%=paientIdUtensilAllocated.get(9)%>
					<%}
					else
					{ %>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="2">
				<% 	if(paientIdUtensilAllocated.size()>9)
					{ %>
						<%=amountIdUtensilAllocated.get(9)%>
					<%}
					else
					{ %>
						.
					<% } 
				%>
			</td>
			<td align="center" colspan="1">
				13
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>12)
					{ %>
						<%=transactionIdCheckOut.get(12)%>
					<% }
					else
					{ %>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="2">
				<% 	if(transactionIdCheckOut.size()>12)
					{ %>
						<%=amountCheckOut.get(12)%>
					<% }
					else
					{ %>
						.
					<%}
				%>
			</td>
		</tr>
			
		<tr>
			<td align="center" colspan="2">
				TOTAL (UD)
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("totalUtensilDeposit").toString()+"." %>
			</td>
			<td align="center" colspan="1">
				14
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>13)
					{
				%>
						<%=transactionIdCheckOut.get(13) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>13)
					{
				%>
						<%=amountCheckOut.get(13) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="4">
				REFUNDED DEPOSIT - UTENSIL
			</td>
			<td align="center" colspan="1">
				15
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>14)
					{
				%>
						<%=transactionIdCheckOut.get(14) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>14)
					{
				%>
						<%=amountCheckOut.get(14) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>0)
					{
				%>
						<%=paientIdUtensilDeAllocated.get(0) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>0)
					{
				%>
						<%=amountIdUtensilDeAllocated.get(0) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				16
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>15)
					{
				%>
						<%=transactionIdCheckOut.get(15) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>15)
					{
				%>
						<%=amountCheckOut.get(15) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>1)
					{
				%>
						<%=paientIdUtensilDeAllocated.get(1) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>1)
					{
				%>
						<%=amountIdUtensilDeAllocated.get(1) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				17
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>16)
					{
				%>
						<%=transactionIdCheckOut.get(16) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>16)
					{
				%>
						<%=amountCheckOut.get(16) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>2)
					{
				%>
						<%=paientIdUtensilDeAllocated.get(2) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>2)
					{
				%>
						<%=amountIdUtensilDeAllocated.get(2) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				18
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>17)
					{
				%>
						<%=transactionIdCheckOut.get(17) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>17)
					{
				%>
						<%=amountCheckOut.get(17) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>3)
					{
				%>
						<%=paientIdUtensilDeAllocated.get(3) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
				if(paientIdUtensilDeAllocated.size()>3)
					{
				%>
						<%=amountIdUtensilDeAllocated.get(3) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="1">
				19
			</td >
			<td align="center" colspan="2">
			<%
				if(transactionIdCheckOut.size()>18)
					{
				%>
						<%=transactionIdCheckOut.get(18) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(transactionIdCheckOut.size()>18)
					{
				%>
						<%=amountCheckOut.get(18) %>
				<% 
					}
					else
					{
				%>
						.
				<%
					}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%  if(paientIdUtensilDeAllocated.size()>4)
					{ %>
						<%=paientIdUtensilDeAllocated.get(4)%>
					<%}
					else
					{ %>
						.
					<% }
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(paientIdUtensilDeAllocated.size()>4)
					{ %>
						<%=amountIdUtensilDeAllocated.get(4)%>
					<% }
					else
					{ %>
						.
				<%}
				%>
			</td>
			<td align="center" colspan="1">
				20
			</td >
			<td align="center" colspan="2">
			<%  
					if(transactionIdCheckOut.size()>19)
					{ %>
						<%=transactionIdCheckOut.get(19) %>
					<%}
					else
					{ %>
						.
						<%}
				%>
			</td>
			<td align="center" colspan="2">
				<%	if(transactionIdCheckOut.size()>19) { %>
						<%=amountCheckOut.get(19)%> 
					<%} else { %>
						.
					<%}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%  if(paientIdUtensilDeAllocated.size()>5)
					{ %>
						<%=paientIdUtensilDeAllocated.get(5)%>
					<%}
					else
					{ %>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="2">
				<%	if(paientIdUtensilDeAllocated.size()>5)
					{ %>
						<%= amountIdUtensilDeAllocated.get(5)%>
				<%}
					else
					{ %>
						.
						<%}
				%>
			</td>
			<td align="center" colspan="1">
				21
			</td >
			<td align="center" colspan="2">
			<%  if(transactionIdCheckOut.size()>20) { %>
				<%=transactionIdCheckOut.get(20)%>
					<% }
					else
					{ %>
						.
					<% }
				%>
			</td>
			<td align="center" colspan="2">
				<%	if(transactionIdCheckOut.size()>20) { %>
						<%=amountCheckOut.get(20)%>
				<%	} else { %>
						.
				<%	} %>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%  if(paientIdUtensilDeAllocated.size()>6)
					{ %>
						<%=paientIdUtensilDeAllocated.get(6)%>
					<%}
					else
					{ %>
						.
				<%	} %>
			</td>
			<td align="center" colspan="2">
				<%
					if(paientIdUtensilDeAllocated.size()>6)
					{ %>
						<%=amountIdUtensilDeAllocated.get(6)%>
					<%}
					else
					{ %>
						.
					<% }
				%>
			</td>
			<td align="center" colspan="1">
				22
			</td >
			<td align="center" colspan="2">
			<%  
					if(transactionIdCheckOut.size()>21)
					{ %>
						<%=transactionIdCheckOut.get(21)%>
					<%}
					else
					{ %>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="2">
				<%	if(transactionIdCheckOut.size()>21) { %>
						<%=amountCheckOut.get(21) %>
				<%	} else { %>
						.
				<%	} %>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%  if(paientIdUtensilDeAllocated.size()>7)
					{ %>
						<%=paientIdUtensilDeAllocated.get(7) %>
					<%}
					else
					{ %>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(paientIdUtensilDeAllocated.size()>7)
					{ %>
						<%=amountIdUtensilDeAllocated.get(7)%>
					<%}
					else
					{ %>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="1">
				23
			</td >
			<td align="center" colspan="2">
			<%  
					if(transactionIdCheckOut.size()>22)
					{ %>
						<%=transactionIdCheckOut.get(22)%>
					<%}
					else
					{ %>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="2">
				<%	if(transactionIdCheckOut.size()>22) { %>
						<%=amountCheckOut.get(22) %> 
				<%} else { %>
						.
				<%} %>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%  if(paientIdUtensilDeAllocated.size()>8)
					{ %>
						<%=paientIdUtensilDeAllocated.get(8) %>
					<%}
					else
					{ %>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="2">
				<%	if(paientIdUtensilDeAllocated.size()>8) { %>
					<%=amountIdUtensilDeAllocated.get(8)%>
				<%}
					else
					{%>
						.
				<%} %>
			</td>
			<td align="center" colspan="1">
				24
			</td >
			<td align="center" colspan="2">
			<%  
					if(transactionIdCheckOut.size()>23)
					{ %>
						<%=transactionIdCheckOut.get(23) %>
					<%}
					else
					{ %>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="2">
				<%	if(transactionIdCheckOut.size()>23) { %>
						<%=amountCheckOut.get(23)%> 
					<%} else {%>
						.
					<%}
				%>
			</td>
			
		</tr>
		<tr>
			<td align="center" colspan="2">
				<%  if(paientIdUtensilDeAllocated.size()>9)
					{ %>
						<%=paientIdUtensilDeAllocated.get(9) %>
					<%}
					else
					{ %>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="2">
				<%
					if(paientIdUtensilDeAllocated.size()>9)
					{ %>
						<%=amountIdUtensilDeAllocated.get(9) %>
					<%}
					else
					{ %>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="1">
				25
			</td >
			<td align="center" colspan="2">
			<%  
					if(transactionIdCheckOut.size()>24)
					{ %>
						<%=transactionIdCheckOut.get(24) %>
					<% }
					else
					{ %>
						.
					<%}
				%>
			</td>
			<td align="center" colspan="2">
				<%	if(transactionIdCheckOut.size()>24) { %>
						<%=amountCheckOut.get(24) %> 
				<%} else { %>
				. 
				<% } %>
			</td>
			
		</tr>
		
		<tr>
			<td align="center" colspan="2">
				TOTAL (UR)
			</td>
			<td align="center" colspan="3">
				<%=session.getAttribute("totalUtensilDepositReturned").toString()+"." %>
			</td>
			
			<td align="center" colspan="2">
				TOTAL (Y)
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("totalDepositReturned").toString()+"." %>
			</td>
		</tr>
		<tr>
			<td align="center" colspan="9">
				DEPOSIT LEDGER 
			</td>
		</tr>
		<tr>
			<td align="center" colspan="3">
				OPENING BAL.
			</td>
			<td align="center" colspan="2">
				Room D (X)
			</td>
			<td align="center" colspan="2">
				Room R (Y)
			</td>
			<td align="center" colspan="2">
				CLOSING BAL.
			</td>
		</tr>
		<tr>
			<td align="center" colspan="3">
				<%=session.getAttribute("openingBalanceRoom").toString()+"." %>
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("totalDeposit").toString()+"." %>
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("totalDepositReturned").toString()+"." %>
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("closingBalanceRoom").toString()+"." %>
			</td>
		</tr>
		<tr>
			<td align="center" colspan="3">
				OPENING BAL.
			</td>
			<td align="center" colspan="2">
				Utensil D (UD)
			</td>
			<td align="center" colspan="2">
				Utensil R (UR)
			</td>
			<td align="center" colspan="2">
				x
			</td>
		</tr>
		<tr>
			<td align="center" colspan="3">
				<%=session.getAttribute("openingBalanceUtensil").toString()+"." %>
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("totalUtensilDeposit").toString()+"." %>
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("totalUtensilDepositReturned").toString()+"." %>
			</td>
			<td align="center" colspan="2">
				<%=session.getAttribute("closingBalanceUtensil").toString()+"." %>
			</td>
		</tr>
		<tr>
			<td align="center" colspan="9">
				CASH BALANCES
			</td>
		</tr>
		<tr>
			<td align="center" colspan="9">
				<table border="1">
					<tr>
						
						<td align="center" colspan="1">
							S.No.
						</td>
						<td align="center" colspan="2">
							Details
						</td>
						<td align="center" colspan="1">
							Amount Rs.
						</td>
					</tr>
					<tr>
						
						<td align="center" colspan="1">
							1
						</td>
						<td align="center" colspan="2">
							Room D (X)
						</td>
						<td align="center" colspan="1">
							<%=session.getAttribute("totalDeposit").toString()+"."%> 
						</td>
					</tr>
					<tr>
						
						<td align="center" colspan="1">
							2
						</td>
						<td align="center" colspan="2">
							Room R (Y)
						</td>
						<td align="center" colspan="1">
							<%=session.getAttribute("totalDepositReturned").toString()+"."%> 
						</td>
					</tr>
					<tr>
						
						<td align="center" colspan="1">
							3
						</td>
						<td align="center" colspan="2">
							(X-Y) (G)  
						</td>
						<td align="center" colspan="1">
							<%=session.getAttribute("deposit3").toString()+"."%> 
						</td>
					</tr>
					<tr>
						
						<td align="center" colspan="1">
							4
						</td>
						<td align="center" colspan="2">
							Utensil D (UD) 
						</td>
						<td align="center" colspan="1">
							<%=session.getAttribute("totalUtensilDeposit").toString()+"."%> 
						</td>
					</tr>
					<tr>
						
						<td align="center" colspan="1">
							5
						</td>
						<td align="center" colspan="2">
							Utensil R (UR)
						</td>
						<td align="center" colspan="1">
							<%=session.getAttribute("totalUtensilDepositReturned").toString()+"."%> 
						</td>
					</tr>
					<tr>
						
						<td align="center" colspan="1">
							6
						</td>
						<td align="center" colspan="2">
							(UD-UR) (H)
						</td>
						<td align="center" colspan="1">
							<%=session.getAttribute("deposit6").toString()+"."%> 
						</td>
					</tr>
					<tr>
						<td align="center" colspan="3">
							FINAL CASH BALANCE (G+H)
						</td>
						<td align="center" colspan="1">
						<%=session.getAttribute("finalCashBalance").toString()+"."%> 
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</body>
</html>